package com.hsgene.order.dto.peanut;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;

/**
 * 基因检测单内容
 *
 * @author wangbing
 * @version 1.0, 2018/9/30
 */
public class TestingOrderRequestDataDto implements Serializable {

    private static final long serialVersionUID = 805846714705932765L;
    /**
     * 检测单id
     */
    private String id;

    /**
     * 支付方式
     */
    private String payMethod;

    /**
     * 手写方式对应的检测图片
     */
    private String testingPhoto;

    /**
     * 基因检测单关联数据
     */
    private TestingOrderRequestDataRelationDto geneOrderRelation;

    public void check() {
        FieldChecker.checkEmpty(id, "订单id");
        FieldChecker.checkEmpty(payMethod, "支付方式");
        FieldChecker.checkEmpty(geneOrderRelation, "基因检测单关联数据");
        geneOrderRelation.check();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public String getTestingPhoto() {
        return testingPhoto;
    }

    public void setTestingPhoto(String testingPhoto) {
        this.testingPhoto = testingPhoto;
    }

    public TestingOrderRequestDataRelationDto getGeneOrderRelation() {
        return geneOrderRelation;
    }

    public void setGeneOrderRelation(TestingOrderRequestDataRelationDto geneOrderRelation) {
        this.geneOrderRelation = geneOrderRelation;
    }
}
